package cn.fancy.sdk.config;

import cn.fancy.sdk.entity.SdkBaseInfo;

public class RequestURL 
{
	
	public final static String LOGIN_URL = "http://lotest.kkfun.com/a?v="+SdkBaseInfo.sdkVersion;
	public final static String PAY_URL = "http://catest.kkfun.com/a?v="+SdkBaseInfo.sdkVersion;
	
//	public final static String SERVER_ADDR_WITH_SDKVERSION = "http://211.155.89.117/login/a?v="+SdkBaseInfo.sdkVersion;
//	public final static String PAY_URL = "http://211.155.89.117/charge/a?v="+SdkBaseInfo.sdkVersion;
	
	public static String ReqIdStr="";
	
	
	public static enum RID
	{
		GAME_LOGIN(1),
		GET_GENERATED_ACCOUNT(2),
		USER_LOGIN(3),
		USER_REGISTER(4),
		ONE_KEY_GAME(5),
		GET_VERIFY_CODE(6),
		MODIFY_PASSWORD(7),
		BIND_UNBIND_PHONE(8),
		GET_MORE_GAME(9),
		MORE_GAME_DETAIL(10),
		MORE_GAME_OPER(11),
		VALID_USER(12),
		GET_PAYLIST(51),
		GET_CHARGE(52),
		RETURN_CHARGERESULT(53),
		GET_SMS_CHANNELINFO(54),
		GET_THIRD_COMMAND(55),
		GET_ACCOUNT_VERIFY_CODE(65);
		
		private int id;
		private RID(int i)
		{
			id = i;
		}
		
		public String getUrl(){
			return RequestURL.LOGIN_URL+"&r="+id+"&z="+ReqIdStr;
		}
		
		public String getPayUrl(){
			return RequestURL.PAY_URL+"&r="+id+"&z="+ReqIdStr;
		}
	}
	
	
	
}
